﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class AdminCMS_UserName_Check : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {        
        string UserName = string.Empty;
        UIMethod.GetQuery(ref UserName, "username", true);

        int output = 0;

        if (UserName != string.Empty)
        {
            output = DataEntity.Common.ExecuteScalar<int>("select count(*) from tab_Admin where adm_LoginUser = @adm_LoginUser", new string[] { "@adm_LoginUser" }, new object[] { UserName });
        }

        Response.Clear();
        Response.Write(output.ToString());
        Response.End();
    }
}
